package com.jwaoo.mobile.bean;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by jwaoo on 2017/12/15.
 */

public class CommonData {

    public static class CommonBean implements IPickerViewData{
        private String key;
        private String value;

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        @Override
        public String getPickerViewText() {
            return this.value;
        }

        public CommonBean(String key, String value) {
            this.key = key;
            this.value = value;
        }
    }

    public static List<CommonBean> getCountryList(){
        List<CommonBean> list = new ArrayList<>();
        list.add(new CommonBean("CN","中国"));
        list.add(new CommonBean("US","美国"));
        return list;
    }

    public static List<CommonBean> getLanguageList(){
        List<CommonBean> list = new ArrayList<>();
        list.add(new CommonBean("zh_CN","中文简体"));
        list.add(new CommonBean("zh_TW","繁体中文（台湾）"));
        list.add(new CommonBean("zh_HK","繁体中文（香港）"));
        list.add(new CommonBean("en_US","English(US)"));
        return list;
    }

    public static List<CommonBean> getNetWorkList(){
        List<CommonBean> list = new ArrayList<>();
        list.add(new CommonBean("wifi","WiFi only"));
        list.add(new CommonBean("all","3G/4G or WiFi"));
        list.add(new CommonBean("close","Close the network"));
        return list;
    }




}
